import { request } from "../request";

export function addcart(sku_id) {
  return request({
    method: "post",
    url: `/api/addcart/`,
    data: {
      sku_id,
      count:1
    },
  });
}
export function getcart() {
  return request({
    method: "get",
    url: `/api/addcart/`
  });
}
export function putcart(sku_id,count,selected) {
  return request({
    method: "put",
    url: `/api/addcart/`,
    data: {
      sku_id,
      count,
      selected
    },


})
}
export function allcart(selected) {
  return request({
    method: "put",
    url: `/api/addcart/selection/`,
    data: {
      selected
    },


})
}
